<?php
namespace Admin\Model;
use Think\Model;
class GoodsModel extends Model {

	 protected $_validate = array(
    	
    	//array(验证字段1,验证规则,错误提示,[验证条件,附加规则,验证时间])
    	
        array('goods_name','','此商品已存在','1','unique','3'),
    	array('goods_price','require','价格必填！','1','','3'),
        array('intro','5,120','字数在5~120之间','1','length','3')      
		);
    
}